package payroll.trans;

import payroll.classfication.PaymentClassfication;
import payroll.classfication.SalariedClassification;

public class AddSalariedEmployeeTransaction extends AddEmployeeTransation{

        private double salary;
   

    public AddSalariedEmployeeTransaction(int empId, String name, String address, double salary) {
        super(empId, name, address);
        this.salary = salary;
    }
   @Override
    // 获取一个SalariedClassification对象
    protected PaymentClassfication getPaymentClassification() {
        return new SalariedClassification(salary);
    }

}
